package com.baichang.taoshunda.entity.em;

public enum CompanyBalanceState {

    订单完成(1), 退货(2), 提现(3);

    private Integer code;

    private CompanyBalanceState(Integer code) {
        this.code = code;
    }

    public static CompanyBalanceState valueOfCode(Integer code) {
        CompanyBalanceState[] states = CompanyBalanceState.values();
        for (CompanyBalanceState state : states) {
            if (state.getCode().equals(code)) {
                return state;
            }
        }
        return null;
    }

    public Integer getCode() {
        return this.code;
    }

    @Override
    public String toString() {
        return String.valueOf(this.code);
    }

}
